const mongoose = require("mongoose");
const servicesSchema = new mongoose.Schema({
    name: String, // 服务名称
    classify: String, // 服务种类
    classifyArr: Array, // 服务种类集合
    price: Number, // 服务价格
    desc: String, // 服务描述
    periodTime: String, // 服务时间段
    adminId: {
        type: mongoose.Schema.Types.ObjectId,
        ref: "adminModel"
    }, // 所属门店管理员id
    shopsId: [{
        type: mongoose.Schema.Types.ObjectId,
        ref: "shopsModel"
    }],// 所属门店id
});

module.exports = mongoose.model("servicesModel", servicesSchema, "services");